from flask_sqlalchemy import SQLAlchemy

db = SQLAlchemy()


class Count(db.Model):
    id = db.Column(db.Integer, primary_key=True, autoincrement=True)
    num = db.Column(db.Integer, default=0)


class Goods(db.Model):
    id = db.Column(db.Integer, primary_key=True, autoincrement=True)
    name = db.Column(db.String(120), unique=True, nullable=False)
    price = db.Column(db.Integer, default=1)
    img = db.Column(db.String(150))
    count =  db.Column(db.Integer, default=0)


